package com.work.framework.pojo;

import java.math.BigDecimal;

/**
 * 订单表
 */
public class Order {

  private Integer oid;                      //订单编号
  private String expressNum;                //快递单号
  private String orderNum;                  //订单号
  private Integer bid;                      //买家用户编号（用户表主键）
  private Integer gid;                      //商品编号（商品表主键）
  private Integer sid;                      //收货地址ID
  private BigDecimal transactionPerice;     //成交价格
  private BigDecimal charges;                //手续费
  private String buildTime;                   //创建时间
  private String paymentTime;                 //支付时间
  private String dealTime;                   //交易时间
  private Integer flage;                    //软删除（0.删除 1.未完成 2.过期 3.成交）


  public Integer getSid() {
    return sid;
  }

  public void setSid(Integer sid) {
    this.sid = sid;
  }

  public Integer getOid() {
    return oid;
  }

  public void setOid(Integer oid) {
    this.oid = oid;
  }


  public String getExpressNum() {
    return expressNum;
  }

  public void setExpressNum(String expressNum) {
    this.expressNum = expressNum;
  }


  public String getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(String orderNum) {
    this.orderNum = orderNum;
  }


  public Integer getBid() {
    return bid;
  }

  public void setBid(Integer bid) {
    this.bid = bid;
  }


  public Integer getGid() {
    return gid;
  }

  public void setGid(Integer gid) {
    this.gid = gid;
  }


  public BigDecimal getTransactionPerice() {
    return transactionPerice;
  }

  public void setTransactionPerice(BigDecimal transactionPerice) {
    this.transactionPerice = transactionPerice;
  }


  public BigDecimal getCharges() {
    return charges;
  }

  public void setCharges(BigDecimal charges) {
    this.charges = charges;
  }


  public String getBuildTime() {
    return buildTime;
  }

  public void setBuildTime(String buildTime) {
    this.buildTime = buildTime;
  }


  public String getPaymentTime() {
    return paymentTime;
  }

  public void setPaymentTime(String paymentTime) {
    this.paymentTime = paymentTime;
  }


  public String getDealTime() {
    return dealTime;
  }

  public void setDealTime(String dealTime) {
    this.dealTime = dealTime;
  }


  public Integer getFlage() {
    return flage;
  }

  public void setFlage(Integer flage) {
    this.flage = flage;
  }

  @Override
  public String toString() {
    return "Order{" +
            "oid=" + oid +
            ", expressNum='" + expressNum + '\'' +
            ", orderNum='" + orderNum + '\'' +
            ", bid=" + bid +
            ", gid=" + gid +
            ", sid=" + sid +
            ", transactionPerice=" + transactionPerice +
            ", charges=" + charges +
            ", buildTime='" + buildTime + '\'' +
            ", paymentTime='" + paymentTime + '\'' +
            ", dealTime='" + dealTime + '\'' +
            ", flage=" + flage +
            '}';
  }
}
